<ui:composition xmlns="http://www.w3.org/1999/xhtml" xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:h="http://java.sun.com/jsf/html" xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui" xmlns:oso="http://osoftware.com/facelets" template="/WEB-INF/templates/mainSearchLayout.xhtml">

	<ui:define name="title">
		<h:outputText value="#{resourceBundle['phone.title']}" />
	</ui:define>

	<ui:define name="searchFields">
		<oso:inputText id="countryCodeFilter" label="#{resourceBundle['phone.countryCode']}" value="#{phoneModel.filter.countryCode}" />
		<oso:inputText id="areaCodeFilter" label="#{resourceBundle['phone.areaCode']}" value="#{phoneModel.filter.areaCode}" />
		<oso:inputText id="phoneNumberFilter" label="#{resourceBundle['phone.phoneNumber']}" value="#{phoneModel.filter.phoneNumber}" />
	</ui:define>

	<ui:define name="listValues">
		<ui:param name="listModel" value="#{phoneModel.list}" />
		<ui:param name="targetObject" value="#{phoneModel.editedEntity}" />
	</ui:define>

	<ui:define name="searchColumns">
		<p:column sortBy="#{row.countryCode}">
			<f:facet name="header">
				<h:outputText value="#{resourceBundle['phone.countryCode']}" />
			</f:facet>
			<h:outputText value="#{row.countryCode}" />
		</p:column>

		<p:column sortBy="#{row.areaCode}">
			<f:facet name="header">
				<h:outputText value="#{resourceBundle['phone.areaCode']}" />
			</f:facet>
			<h:outputText value="#{row.areaCode}" />
		</p:column>

		<p:column sortBy="#{row.phoneNumber}">
			<f:facet name="header">
				<h:outputText value="#{resourceBundle['phone.phoneNumber']}" />
			</f:facet>
			<h:outputText value="#{row.phoneNumber}" />
		</p:column>

		<p:column sortBy="#{row.comment}">
			<f:facet name="header">
				<h:outputText value="#{resourceBundle['phone.comment']}" />
			</f:facet>
			<h:outputText value="#{row.comment}" />
		</p:column>
	</ui:define>
</ui:composition>